using System.Windows.Controls;
using Microsoft.Practices.Prism.ViewModel;
using CharacterCreation.Data.Services;
using CharacterCreation.Data.Models;
using System.Collections.ObjectModel;
using CharacterCreation.Views.Contracts;

namespace CharacterCreation.Views {
    /// <summary>
    /// The skill list view model
    /// </summary>
    public partial class SkillListViewModel : BaseViewModel {

        private SkillService _skillService = SkillService.CreateInstance();
        
        /// <summary>
        /// Gets or sets the Skills
        /// </summary>
        public ObservableCollection<Skill> Skills {
            get { return _skillService.Items; }
        }

        /// <summary>
        /// Gets or sets the current skill
        /// </summary>
        public Skill CurrentSkill {
            get { return _skillService.CurrentItem; }
            set { _skillService.CurrentItem = value; }
        }

        /// <summary>
        /// Constructor
        /// </summary>
        public SkillListViewModel() { }
    }
}